#include "Event.hpp"
#include "Widget.hpp"

namespace mi
{
    Event::Event(Widget *cause, Vec2i mousePosition)
    {
        sourceWidget = cause;
        mouseCoords = mousePosition;
    }

    Widget* Event::SourceWidget ()
    {
        return sourceWidget;
    }

    Vec2i Event::MousePos ()
    {
        return mouseCoords;
    }
}